package com.ttj.domain.oracle.gen;

import java.io.Serializable;
import java.util.Date;

public class SuperOrderOutstockDetail implements Serializable {
    /**
     * 订单编号；0 是手动创建的出库单
     */
    private Integer orderId;

    /**
     * 商品ID
     */
    private Integer gId;

    /**
     * 商品数量
     */
    private Integer num;

    /**
     * 仓库ID
     */
    private Integer stockId;

    /**
     * 出库单号
     */
    private Integer outId;

    /**
     * 出库状态；0--未出库；1-已出库
     */
    private Integer odStatus;

    /**
     * 0-未取货；1-已取货
     */
    private Integer quhuoState;

    /**
     * 取货人
     */
    private String quhuoPerson;

    /**
     * 取货时间
     */
    private Date quhuoTime;

    private static final long serialVersionUID = 1L;

    /**
     * 订单编号；0 是手动创建的出库单
     */
    public Integer getOrderId() {
        return orderId;
    }

    /**
     * 订单编号；0 是手动创建的出库单
     */
    public void setOrderId(Integer orderId) {
        this.orderId = orderId;
    }

    /**
     * 商品ID
     */
    public Integer getgId() {
        return gId;
    }

    /**
     * 商品ID
     */
    public void setgId(Integer gId) {
        this.gId = gId;
    }

    /**
     * 商品数量
     */
    public Integer getNum() {
        return num;
    }

    /**
     * 商品数量
     */
    public void setNum(Integer num) {
        this.num = num;
    }

    /**
     * 仓库ID
     */
    public Integer getStockId() {
        return stockId;
    }

    /**
     * 仓库ID
     */
    public void setStockId(Integer stockId) {
        this.stockId = stockId;
    }

    /**
     * 出库单号
     */
    public Integer getOutId() {
        return outId;
    }

    /**
     * 出库单号
     */
    public void setOutId(Integer outId) {
        this.outId = outId;
    }

    /**
     * 出库状态；0--未出库；1-已出库
     */
    public Integer getOdStatus() {
        return odStatus;
    }

    /**
     * 出库状态；0--未出库；1-已出库
     */
    public void setOdStatus(Integer odStatus) {
        this.odStatus = odStatus;
    }

    /**
     * 0-未取货；1-已取货
     */
    public Integer getQuhuoState() {
        return quhuoState;
    }

    /**
     * 0-未取货；1-已取货
     */
    public void setQuhuoState(Integer quhuoState) {
        this.quhuoState = quhuoState;
    }

    /**
     * 取货人
     */
    public String getQuhuoPerson() {
        return quhuoPerson;
    }

    /**
     * 取货人
     */
    public void setQuhuoPerson(String quhuoPerson) {
        this.quhuoPerson = quhuoPerson;
    }

    /**
     * 取货时间
     */
    public Date getQuhuoTime() {
        return quhuoTime;
    }

    /**
     * 取货时间
     */
    public void setQuhuoTime(Date quhuoTime) {
        this.quhuoTime = quhuoTime;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", orderId=").append(orderId);
        sb.append(", gId=").append(gId);
        sb.append(", num=").append(num);
        sb.append(", stockId=").append(stockId);
        sb.append(", outId=").append(outId);
        sb.append(", odStatus=").append(odStatus);
        sb.append(", quhuoState=").append(quhuoState);
        sb.append(", quhuoPerson=").append(quhuoPerson);
        sb.append(", quhuoTime=").append(quhuoTime);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        SuperOrderOutstockDetail other = (SuperOrderOutstockDetail) that;
        return (this.getOrderId() == null ? other.getOrderId() == null : this.getOrderId().equals(other.getOrderId()))
            && (this.getgId() == null ? other.getgId() == null : this.getgId().equals(other.getgId()))
            && (this.getNum() == null ? other.getNum() == null : this.getNum().equals(other.getNum()))
            && (this.getStockId() == null ? other.getStockId() == null : this.getStockId().equals(other.getStockId()))
            && (this.getOutId() == null ? other.getOutId() == null : this.getOutId().equals(other.getOutId()))
            && (this.getOdStatus() == null ? other.getOdStatus() == null : this.getOdStatus().equals(other.getOdStatus()))
            && (this.getQuhuoState() == null ? other.getQuhuoState() == null : this.getQuhuoState().equals(other.getQuhuoState()))
            && (this.getQuhuoPerson() == null ? other.getQuhuoPerson() == null : this.getQuhuoPerson().equals(other.getQuhuoPerson()))
            && (this.getQuhuoTime() == null ? other.getQuhuoTime() == null : this.getQuhuoTime().equals(other.getQuhuoTime()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getOrderId() == null) ? 0 : getOrderId().hashCode());
        result = prime * result + ((getgId() == null) ? 0 : getgId().hashCode());
        result = prime * result + ((getNum() == null) ? 0 : getNum().hashCode());
        result = prime * result + ((getStockId() == null) ? 0 : getStockId().hashCode());
        result = prime * result + ((getOutId() == null) ? 0 : getOutId().hashCode());
        result = prime * result + ((getOdStatus() == null) ? 0 : getOdStatus().hashCode());
        result = prime * result + ((getQuhuoState() == null) ? 0 : getQuhuoState().hashCode());
        result = prime * result + ((getQuhuoPerson() == null) ? 0 : getQuhuoPerson().hashCode());
        result = prime * result + ((getQuhuoTime() == null) ? 0 : getQuhuoTime().hashCode());
        return result;
    }
}